package com.gdsdxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gdsdxy.dto.CommentDto;

import com.gdsdxy.dto.ResultVo;
import com.gdsdxy.entity.Comments;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public interface ICommentsService extends IService<Comments> {
    //评论列表， 显示评论
    ResultVo listComments(Long id);

    //评论和回复评论
    ResultVo createcomment(CommentDto commentDto);


    /**
     * 删除评论
     * @param id 评论id
     * @return ResultVo
     */
    ResultVo removeComment(Long id);

    /**
     * 查找名字
     * @param id 评论id
     * @return ResultVo
     */
    ResultVo queryComments(Long id);

    /**
     * 修改评论
     * @param comments 评论信息
     * @return ResultVo
     */
    ResultVo updateComments(Comments comments);



}
